<?php
/* @var $this TeacherController */
/* @var $model Teacher */

$this->breadcrumbs=array(
	'教师团队管理',
);

$this->menu=array(
	array('label'=>'返回后台主页', 'url'=>array('default/index')),
	array('label'=>'新建分层', 'url'=>array('createlevel')),
	array('label'=>'创建新教师资料', 'url'=>array('create')),
);
?>

<h3>当前分层</h3>
<?php $this->widget('zii.widgets.grid.CGridView', array(
    'id'=>'display-level-grid',
    'dataProvider'=>$displayModel->search(),
    'filter'=>$displayModel,
    'columns'=>array(
        array(
            'name'=>'display_level',
            'value'=>'$data->display_level',
            'htmlOptions'=>array('style'=>'width:100px')
        ),
        'description',
        array(
                    'class'=>'CButtonColumn',
                    'template'=>'{delete}',
                    'buttons'=>array(
                        'delete' => array(
                            'url'=>'Yii::app()->createURL("admin/teacher/deletelevel", array("id"=>"$data->display_level"))',
                        ),
                    ),
                    'header'=>'操作',
                ),
 
    ),
)); ?>
<h3>教师团队管理</h3>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'teacher-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'teacher_id',
		'teacher_name',
		'sex',
		'birthday',
		'nation',
		'display_level',
		/*
		'technical_position',
		'degree',
		'graduated',
		'address',
		'zip_code',
		'tel',
		'brief',
		'research_experience',
		'research_achievement',
		'create_date',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
